package com.example.dyxeapplication.menu.alfabet;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.dyxeapplication.R;
import com.example.dyxeapplication.content.menu.alfabet.Alfabet;
import com.example.dyxeapplication.setting.temp;

public class Menu_Alfabet_BD extends Activity {
	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.menu_alfabet_2);

	}

	public void huruf1(View v) {
		temp.huruf = "b";
		Intent myIntent = new Intent(this, Alfabet.class);
		myIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		startActivity(myIntent);
	}

	public void huruf2(View v) {
		temp.huruf = "d";
		Intent myIntent = new Intent(this, Alfabet.class);
		myIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		startActivity(myIntent);
	}
	
	@Override
	public void onBackPressed() {
		Intent backIntent = new Intent(this, Menu_Alfabet_Belajar.class);
		backIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
	    startActivity(backIntent);
	}

}
